package day13;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Arrays;

public class h2 {
    public static void main(String[] args) throws IOException {
        FileInputStream file=new FileInputStream("note.txt");
        byte[] data=new byte[1024];
        int len;
        while ((len=file.read(data))!=-1){
            System.out.println(new String(data,0,len));
        }




        file.close();

    }
}
